'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  // home.js
  router.get('/getValidateCode', controller.home.getValidateCode)
  // user.js
  router.post('/register', controller.user.index.register) // 注册
  router.post('/login', controller.user.index.login) // 登录
  router.get('/validate', controller.user.index.validate); // 检验
};
